.__events-view {
    line-height: 1.7;
    color: #474747;
    font-family: var(--font-family-barlow);
}

.__events-view .__date-event {
    font-size: 0.8rem;
    margin-bottom: 0;
    font-weight: 200;
}

.__events-view h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0;
}

.__events-view .tags-event-container .tags-event {
    font-size: 0.5rem;
    background-color: var(--primary-color);
    display: inline-block;
    margin-top: 0;
    margin-bottom: 20px;
    color: #fff;
    padding: 2px 5px;
    border-radius: 15px;
}
.__events-view .image_event {
    max-width: 600px;
    min-width: 250px;
    width: 100%;
    box-shadow: 0px 0px 8px #47474742;
}

.__events-view .image-container:hover {
    cursor: pointer;
}

.__events-view .__content-event {
    font-size: 1.4rem;
}

.image-container {
    position: relative;
    display: inline-block;
}

.image-container .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
}

.overlay i {
    font-size: 1.25rem;
    font-weight: bold;
}

/* Effet hover sur l'image */
.image-container .overlay {
    opacity: 1;
}

/* Global styling for modal */
.modal {
    display: none; /* Hide modal by default */
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.7); /* Black transparent background */
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.modal.fade.show {
    display: flex; /* Show modal */
    justify-content: center;
    align-items: center;
}

/* Modal dialog styling */
.modal-dialog {
    max-width: 900px;
    margin: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
    background-color: black;
    cursor: -webkit-grab;
    cursor: grab;
}

/* Modal content */
.modal-content {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border: none;
    border-radius: 8px;

}

.modal-content .modal-body {
    margin: 0;
    padding: 0;
}

/* Carousel image styling */
.carousel-inner img {
    border-radius: 5px;
    max-height: 500px;
    object-fit: cover; /* Ensure image scales correctly */
}

/* Carousel controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    font-size: 100px;
    width: 40px;
    height: 40px;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    color: rgba(0, 0, 0, 0.8); /* Add hover effect */
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


@media screen and (min-width: 280px) and (max-width: 667px) {
    .modal {
        justify-content: center;
        align-items: center;
    }
}
